package com.lx;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Main {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("spring-bean.xml");
        User user = (User) context.getBean("asdf");
        User user2 = (User) context.getBean("u2");
        User user3 = (User) context.getBean("u3");
        User user4 = (User) context.getBean("u4");
        User user5 = (User) context.getBean("u5");
        user.output();
        user2.output();
        user3.output();
        user4.output();
        user5.output();
    }
}